<?php
/**
 * This file is part of Task Agile.
 * Task Agile is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License.
 * Task Agile is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Task Agile.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @category   TaskAgile
 * @package    Controller
 * @copyright  Copyright (c) 20010-2010 Estrada Virtual (http://estradavirtual.com.br)
 * @license    http://www.gnu.org/licenses/gpl.txt GPLv3
 * @version    $Id$
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <base href="<?php echo $this->serverUrl() . $this->baseUrl(); ?>/" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Task Agile</title>
    <!-- (en) Add your meta data here -->
    <!-- (de) Fuegen Sie hier ihre Meta-Daten ein -->

    <link href="theme/default/css/layout_building_forms.css" rel="stylesheet" type="text/css"/>
    <link href="theme/default/css/style.css" rel="stylesheet" type="text/css"/>
    <!--[if lte IE 7]>
    <link href="theme/default/css/patches/patch_building_forms.css" rel="stylesheet" type="text/css" />
    <![endif]-->

    <!-- embedded styles for dynamic layout options -->
    <style type="text/css">
      #js-info { display:block; padding: 10px 20px; background: #fee; color: #800; margin: 0 0 10px 0; }
      .js #js-info { display:none; }

      p.switch { display:none; }
      .js p.switch { display:block; }

      .active { font-weight:bold; color: #800 !important; }
    </style>

    <!-- JavaScript Detection -->

    <script type="text/javascript">document.documentElement.className += " js";</script>
    <!-- jQuery & Plugins -->
    <script src="js/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="theme/default/library/yaml/add-ons/accessible-tabs/jquery.tabs.js" type="text/javascript"></script>
    <script src="theme/default/library/yaml/add-ons/syncheight/jquery.syncheight.js" type="text/javascript"></script>
    <script src="js/jquery/validate/jquery.validate.pack.js" type="text/javascript"></script>
    <script src="js/jquery/validate/messages_ptbr.js" type="text/javascript"></script>
    <script src="js/jquery/meio.mask.min.js" type="text/javascript"></script>


    <script type="text/javascript">
    $(document).ready(function(){
      $(".example1").accessibleTabs({fx:"show",fxspeed: '', syncheights: false, tabbody:'.tab-content'});
      $(".example2").accessibleTabs({fx:"show",fxspeed: '', syncheights: true, tabbody:'.tab-content'});


      $('a[id*=toggle]').click(function(){
        if ($(this).hasClass('active') === true) {
          $('a').removeClass('active');
          $('body').removeAttr('class');
        } else {
          $('a').removeClass('active');
          $('body').removeAttr('class').addClass($(this).text());
          $(this).addClass('active');
        }
      });
      $('a#formReset').click(function(){
          $('a').removeClass('active');
          $('body').removeAttr('class');
          $(this).addClass('active');
      });
    });
    </script>
</head>
<body>
    <!-- skip link navigation -->
    <ul id="skiplinks">
        <li><a class="skip" href="#nav">Skip to navigation (Press Enter).</a></li>
        <li><a class="skip" href="#col3">Skip to main content (Press Enter).</a></li>

    </ul>
<div class="page_margins">
  <div class="page">
    <div id="header" role="banner">
      <div id="nav2" class="hlist2">
          <?php echo $this->navigation()->menu(); ?>

          <?php if (Zend_Auth::getInstance()->hasIdentity()) : ?>
              <div class="identity" style="float: right; margin-top: 3px;">
                  Bem Vindo, <b><?php echo Zend_Auth::getInstance()->getIdentity()->name; ?></b> | <a href="index/logout">Sair<div class="sair"></div></a></span>
              </div>
        <?php endif; ?>
      </div>
    </div>
    <!-- begin: main navigation #nav -->
    <div id="nav" role="navigation">
      <div class="hlist">

      </div>
      <?php if (Zend_Auth::getInstance()->hasIdentity()) : ?>
        <!--
        <div class="breadcrumbs">
            Você esta aqui :
            <?php //echo $this->navigation()->breadcrumbs()->setMinDepth(0)->setLinkLast(true)->setSeparator(' : '); ?>
        </div>
        -->
      <?php endif; ?>
    </div>
    <!-- end: main navigation -->
    <!-- begin: main content area #main -->
    <div id="main">
        <div>

        <?php
            $messages = (array) $this->layout()->messages;
            if (count($messages)) : ?>
            <div id="divErrors">
                <?php foreach( $messages as $mensage) {
                    if (!empty($mensage)) {
                        echo $mensage . '<br />';
                    }
                } ?>
        <?php
            else : ?>
            <div id="divErrors" style="display:none;">
        <?php endif; ?>
            </div>
        <?php echo $this->layout()->content; ?>
            </div>

        <!-- IE Column Clearing -->
        <div id="ie_clearing">&nbsp;</div>
        <!-- End: IE Column Clearing -->
      </div>
      <!-- end: #col3 -->
    <!-- end: #main -->
    <div id="footer">
        <p align="center">Desenvolvido por Estrada Virtual</p>
        <div style="display: inline-table;">
            <div class="ev" style="display: inline-table;"></div>
            <div class="gpl3" style="display: inline-table;"></div>
        </div>
    </div>
  </div>
</div>
</div>
<!-- full skiplink functionality in webkit browsers -->
<script src="library/yaml/core/js/yaml-focusfix.js" type="text/javascript"></script>
<?php if (APPLICATION_ENV != 'development') : ?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18113759-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<?php endif; ?>
</body>